feat: massive indexing performance and UX improvements#165
Merged
Conversation
- Changed files mode: Analyzes uncommitted changes and suggests reviewers - Root directory mode: Shows top-level areas with owners - Subdirectory mode: Shows expertise for current directory - Tree branch UI (├─, └─) with emojis for visual hierarchy - Smart defaults: detects context and shows relevant info - Legacy --all flag for table view - Always includes helpful tips for next actions
Simplified to context-aware modes only (changed files, root, subdirectory)
Show 2 levels for monorepo directories (packages/cli/, packages/core/)
Major improvements to dev owners command: **Context-Aware Modes:** - Changed files mode: Shows ownership of uncommitted changes - Root directory mode: High-level overview (packages/cli/, packages/core/) - Subdirectory mode: Detailed expertise for specific area **Smart Ownership Display:** - Asymmetric icons: No icon for your files (minimal noise) -⚠️ flags files owned by others (actionable) - 🆕 flags truly new files with no history - Shows last touched timestamp for all files - Detects recent activity by others on your files **Technical Improvements:** - Real-time ownership via git log for uncommitted changes - Git root detection for subdirectory support - Tracks both primary owner and recent contributors - Suggests reviewers when modifying others' code **Examples:** Your file: └─ src/auth.ts @you • 50 commits • Last: 6 months ago Your file + recent activity by others: └─ src/auth.ts @you • 50 commits • Last: 6 months ago⚠️ Recent activity by @alice (yesterday) Someone else's file: └─⚠️ src/session.ts @alice • 12 commits • Last: 2 years ago New file: └─ 🆕 src/feature.ts New file Removed legacy --all option and table format.
3a94ab6 to
c8c7d02
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Massive improvements to indexing performance and CLI user experience, delivering a 184% speedup and eliminating all silent processing gaps.
Performance Improvements (184% faster)
dev stats(saves 1-3s)dev owners(1s)UX Improvements (No More Silent Gaps)
Section-Based Progress Display
dev index,dev update,dev git index,dev github indexContext-Aware
dev ownersCommandThree intelligent modes:
packages/cli/,packages/core/)Smart ownership display:
Examples:
Your file (clean, minimal):
Your file + recent activity by others:
Someone else's stale file:
Architecture Simplifications
file_authorsSQLite table (on-demand is fast enough)appendFileAuthors()andgetFileAuthors()from MetricsStoreauthorContributionsfrom IndexUpdatedEventTechnical Details
log-updatedependency for smooth progress updatesProgressRendererclass for section-based progress displaybuildCodeMetadata()to derive change frequency from author contributionsTesting
All 1100+ tests passing ✅
Breaking Changes
None for end users. Internal APIs changed:
IndexUpdatedEventno longer includesauthorContributionsMetricsStoremethods removed (use on-demand calculation instead)Before: 95s with 3-minute silent gaps
After: 33s with continuous feedback every 1 second